package com.lims.algorithm.useful.stringprocess;

/**
 * <功能简述>
 *
 * @author: lims
 * @create: 2019-08-06 18:06
 */
public class ChineseMatcher {
    //指示器变量
    private char MATCH = '十';
    private char MISMATCH = '口';

    /**
     *
     */
    private static final char[] cnSignArr = "。？！，、；：“” ‘’「」『』（）〔〕【】—﹏…～·《》〈〉".toCharArray();
    private static final char[] enSignArr = "`!@#$%^&*()_+~-=[]\\;',./{}|:\"<>?".toCharArray();

    /**
     * orgWords:原串
     * mtcWords：目标串
     */
    private String originString;
    private String matchString;

    private String orgWords;
    private String mtcWords;

    /**
     *
     */
    private char[] org;
    private char[] mtc;

    /**
     * 指示器
     */
    private int[] indicator;

    /**
     * absent:
     * excess:
     */
    private double matchingRate;
    private double accuracyRate;
    private int absent;
    private int excess;

    private String clearNonWordChar(String str) {
        for (int i = 0; i < cnSignArr.length; i++) {
            str = str.replace("" + cnSignArr[i], "");
        }
        for (int i = 0; i < enSignArr.length; i++){
            str = str.replace("" + enSignArr[i], "");
        }
        return str;
    }

    public void doProcess(){
        int index = 0;
        double matchCount = 0;
    }

}
